import request from "@/router/axios";

export const getKnowledgePageList = (params) => {
  return request({
    url: "/admin/knowledge/list ",
    method: "post",
    data: params,
  });
};

export const getKnowledgeItemDetails = (row) => {
  return request({
    url: "/admin/knowledge/detail",
    method: "post",
    data: row,
  });
};


export const updateKnowledgeItem = (row) => {
  return request({
    url: "/admin/knowledge/edit",
    method: "post",
    data: row,
  });
};
export const delKnowledgeItem = (row) => {
  return request({
    url: "/admin/knowledge/delete",
    method: "post",
    data: row,
  });
};
